var dom = document.getElementById("main");
var myChart = echarts.init(dom);
// option
option = {
    
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'shadow'
        }
    },
    legend: {
        data: ['平均绩点分', '最低分','最高分'],
        textStyle: {
            color: '#000'
        }
    },
    xAxis: {
        data: ['第一学期','第二学期','第三学期','第四学期','第五学期','第六学期'],
        axisLine: {
            lineStyle: {
                color: '#ccc'
            }
        }
    },
    yAxis: {
        splitLine: {show: false},
        axisLine: {
            lineStyle: {
                color: '#ccc'
            }
        }
    },
    series: [{
        name: '平均绩点分',
        type: 'line',
        smooth: true,
        showAllSymbol: true,
        symbol: 'emptyCircle',
        symbolSize: 15,
        data: [73.5,75.25,74,76.8,81,83]
    }, {
        name: '最低分',
        type: 'bar',
        barWidth: 10,
        itemStyle: {
            normal: {
                barBorderRadius: 5,
                color: new echarts.graphic.LinearGradient(
                    0, 0, 0, 1,
                    [
                        {offset: 0, color: '#14c8d4'},
                        {offset: 1, color: '#43eec6'}
                    ]
                )
            }
        },
        data: [67,42,62,53,63,66]
    }, {
        name: '最高分',
        type: 'line',
        symbol: 'rect',
        itemStyle: {
            normal: {
                color: '#0f375f'
            }
        },
        symbolRepeat: true,
        symbolSize: [12, 4],
        symbolMargin: 1,
        z: -10,
        data:[89,93,84,87,94,94]
    }]
};
myChart.setOption(option, true);